package com.smsp.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

public class Templet {
    private Integer id;

    private String templetNo;

    @NotBlank(message = "模板名称不能为空")
    @Length(max = 16, message = "模板名称最大为16个字符")
    private String templetCnName;

    @NotBlank(message = "模板签名不能为空")
    @Length(max = 12, message = "签名最大为12个字符")
    private String templetSign;

    @NotBlank(message = "模板内容不能为空")
    @Length(max = 48, message = "内容最大长度为48个字符")
    private String templetContent;

    private String templetStatus;

    private Integer userId;

    private Date createTime;

    private Date updateTime;

    private String templetExtno;

    private Integer templetExtend2;

    public Templet(Integer id, String templetNo, String templetCnName, String templetSign, String templetContent, String templetStatus, Integer userId, Date createTime, Date updateTime, String templetExtno, Integer templetExtend2) {
        this.id = id;
        this.templetNo = templetNo;
        this.templetCnName = templetCnName;
        this.templetSign = templetSign;
        this.templetContent = templetContent;
        this.templetStatus = templetStatus;
        this.userId = userId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.templetExtno = templetExtno;
        this.templetExtend2 = templetExtend2;
    }

    public Templet() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTempletNo() {
        return templetNo;
    }

    public void setTempletNo(String templetNo) {
        this.templetNo = templetNo == null ? null : templetNo.trim();
    }

    public String getTempletCnName() {
        return templetCnName;
    }

    public void setTempletCnName(String templetCnName) {
        this.templetCnName = templetCnName == null ? null : templetCnName.trim();
    }

    public String getTempletSign() {
        return templetSign;
    }

    public void setTempletSign(String templetSign) {
        this.templetSign = templetSign == null ? null : templetSign.trim();
    }

    public String getTempletContent() {
        return templetContent;
    }

    public void setTempletContent(String templetContent) {
        this.templetContent = templetContent == null ? null : templetContent.trim();
    }

    public String getTempletStatus() {
        return templetStatus;
    }

    public void setTempletStatus(String templetStatus) {
        this.templetStatus = templetStatus == null ? null : templetStatus.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTempletExtno() {
        return templetExtno;
    }

    public void setTempletExtno(String templetExtno) {
        this.templetExtno = templetExtno == null ? null : templetExtno.trim();
    }

    public Integer getTempletExtend2() {
        return templetExtend2;
    }

    public void setTempletExtend2(Integer templetExtend2) {
        this.templetExtend2 = templetExtend2;
    }
}